home *** CD-ROM | disk | FTP | other *** search
- /*****************************************************************************
- SoundsAU.js
-
- Encarta Virtual Globe 1999
-
- (c) Copyright Microsoft Corporation 1998
-
- Populates the sound table for Austrialia. The sound table is comprised
- of a Lat,Long location where the sound is associated with, and an index
- number into the Audio Man control which has the path to the actual sound
- file. See FlightSounds.xls for the table of sound file and Lat,Long
- matchings.
-
- Also includes fusion related variables declarations and functions
- because the number of fusion nodes vary between Fly files.
-
- This file is to be included by FlyAus.htm
-
- Owner = WHsu
- *****************************************************************************/
- var g_numFusionSrcNodes = 21;
- var g_FusionSrcNodes = new Array(g_numFusionSrcNodes); // node object for Fusion URLWav
- var g_fFusionSrcNodeLoaded = new Array(g_numFusionSrcNodes); // if set, node loaded
-
- function LoadFusionMedia()
- {
- var i;
- for ( i=0; i < g_numFusionSrcNodes; i++ )
- {
- g_fFusionSrcNodeLoaded[i] = false;
- }
- g_FusionSrcNodes[0] = MediaGraph.Nodes("FusionSrcA");
- g_FusionSrcNodes[1] = MediaGraph.Nodes("FusionSrcB");
- g_FusionSrcNodes[2] = MediaGraph.Nodes("FusionSrcC");
- g_FusionSrcNodes[3] = MediaGraph.Nodes("FusionSrcD");
- g_FusionSrcNodes[4] = MediaGraph.Nodes("FusionSrcE");
- g_FusionSrcNodes[5] = MediaGraph.Nodes("FusionSrcF");
- g_FusionSrcNodes[6] = MediaGraph.Nodes("FusionSrcG");
- g_FusionSrcNodes[7] = MediaGraph.Nodes("FusionSrcH");
- g_FusionSrcNodes[8] = MediaGraph.Nodes("FusionSrcI");
- g_FusionSrcNodes[9] = MediaGraph.Nodes("FusionSrcJ");
- g_FusionSrcNodes[10] = MediaGraph.Nodes("FusionSrcK");
- g_FusionSrcNodes[11] = MediaGraph.Nodes("FusionSrcL");
- g_FusionSrcNodes[12] = MediaGraph.Nodes("FusionSrcM");
- g_FusionSrcNodes[13] = MediaGraph.Nodes("FusionSrcN");
- g_FusionSrcNodes[14] = MediaGraph.Nodes("FusionSrcO");
- g_FusionSrcNodes[15] = MediaGraph.Nodes("FusionSrcP");
- g_FusionSrcNodes[16] = MediaGraph.Nodes("FusionSrcQ");
- g_FusionSrcNodes[17] = MediaGraph.Nodes("FusionSrcR");
- g_FusionSrcNodes[18] = MediaGraph.Nodes("FusionSrcS");
- g_FusionSrcNodes[19] = MediaGraph.Nodes("FusionSrcT");
- g_FusionSrcNodes[20] = MediaGraph.Nodes("FusionSrcU");
-
- MediaGraph.Nodes("FusionSrcA").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcB").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcC").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcD").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcE").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcF").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcG").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcH").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcI").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcJ").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcK").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcL").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcM").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcN").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcO").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcP").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcQ").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcR").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcS").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcT").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcU").LoadMedia(false);
- }
-
- g_SoundTable[g_Continent_AU] = new Array(25);
-
- g_SoundTable[g_Continent_AU][0] = new Array(3);
- g_SoundTable[g_Continent_AU][1] = new Array(3);
- g_SoundTable[g_Continent_AU][2] = new Array(3);
- g_SoundTable[g_Continent_AU][3] = new Array(3);
- g_SoundTable[g_Continent_AU][4] = new Array(3);
- g_SoundTable[g_Continent_AU][5] = new Array(3);
- g_SoundTable[g_Continent_AU][6] = new Array(3);
- g_SoundTable[g_Continent_AU][7] = new Array(3);
- g_SoundTable[g_Continent_AU][8] = new Array(3);
- g_SoundTable[g_Continent_AU][9] = new Array(3);
- g_SoundTable[g_Continent_AU][10] = new Array(3);
- g_SoundTable[g_Continent_AU][11] = new Array(3);
- g_SoundTable[g_Continent_AU][12] = new Array(3);
- g_SoundTable[g_Continent_AU][13] = new Array(3);
- g_SoundTable[g_Continent_AU][14] = new Array(3);
- g_SoundTable[g_Continent_AU][15] = new Array(3);
- g_SoundTable[g_Continent_AU][16] = new Array(3);
- g_SoundTable[g_Continent_AU][17] = new Array(3);
- g_SoundTable[g_Continent_AU][18] = new Array(3);
- g_SoundTable[g_Continent_AU][19] = new Array(3);
- g_SoundTable[g_Continent_AU][20] = new Array(3);
- g_SoundTable[g_Continent_AU][21] = new Array(3);
- g_SoundTable[g_Continent_AU][22] = new Array(3);
- g_SoundTable[g_Continent_AU][23] = new Array(3);
- g_SoundTable[g_Continent_AU][24] = new Array(3);
-
- // (+) means expendable, (++) really expendable, first ones to go if need be
- g_SoundTable[g_Continent_AU][0][g_indexLat] = -37;
- g_SoundTable[g_Continent_AU][0][g_indexLong] = 135;
- g_SoundTable[g_Continent_AU][0][g_indexSound] = 1; // F172388A -37 135 172388 Australia
-
- g_SoundTable[g_Continent_AU][1][g_indexLat] = -37;
- g_SoundTable[g_Continent_AU][1][g_indexLong] = 135;
- g_SoundTable[g_Continent_AU][1][g_indexSound] = 2; // F172389A -37 135 172389 Australia
-
- g_SoundTable[g_Continent_AU][2][g_indexLat] = -37;
- g_SoundTable[g_Continent_AU][2][g_indexLong] = 135;
- g_SoundTable[g_Continent_AU][2][g_indexSound] = 3; // F172390A -37 135 172390 Australia
-
- g_SoundTable[g_Continent_AU][3][g_indexLat] = 17;
- g_SoundTable[g_Continent_AU][3][g_indexLong] = 107;
- g_SoundTable[g_Continent_AU][3][g_indexSound] = 4; // F172500A 17 107 172500 Laos (+)
-
- g_SoundTable[g_Continent_AU][4][g_indexLat] = -5;
- g_SoundTable[g_Continent_AU][4][g_indexLong] = 145;
- g_SoundTable[g_Continent_AU][4][g_indexSound] = 5; // F172536A -5 145 172536 Papua New Guinea
-
- g_SoundTable[g_Continent_AU][5][g_indexLat] = -8;
- g_SoundTable[g_Continent_AU][5][g_indexLong] = 160;
- g_SoundTable[g_Continent_AU][5][g_indexSound] = 6; // F172562A -8 160 172562 Solomon Is.
-
- g_SoundTable[g_Continent_AU][6][g_indexLat] = -17;
- g_SoundTable[g_Continent_AU][6][g_indexLong] = -149;
- g_SoundTable[g_Continent_AU][6][g_indexSound] = 7; // F172579A -17 -149 172579 Tahiti
-
- g_SoundTable[g_Continent_AU][7][g_indexLat] = 15;
- g_SoundTable[g_Continent_AU][7][g_indexLong] = 103;
- g_SoundTable[g_Continent_AU][7][g_indexSound] = 8; // F172583A 15 103 172583 Thailand (+)
-
- g_SoundTable[g_Continent_AU][8][g_indexLat] = -17;
- g_SoundTable[g_Continent_AU][8][g_indexLong] = -174;
- g_SoundTable[g_Continent_AU][8][g_indexSound] = 9; // F172586A -17 -174 172586 Tonga (+)
-
- g_SoundTable[g_Continent_AU][9][g_indexLat] = 21;
- g_SoundTable[g_Continent_AU][9][g_indexLong] = -158;
- g_SoundTable[g_Continent_AU][9][g_indexSound] = 10; // F172597A 21 -158 172597 Hawaii (++)
-
- g_SoundTable[g_Continent_AU][10][g_indexLat] = -37;
- g_SoundTable[g_Continent_AU][10][g_indexLong] = 135;
- g_SoundTable[g_Continent_AU][10][g_indexSound] = 11; // F172931A -37 135 172931 Australia
-
- g_SoundTable[g_Continent_AU][11][g_indexLat] = -18;
- g_SoundTable[g_Continent_AU][11][g_indexLong] = 178;
- g_SoundTable[g_Continent_AU][11][g_indexSound] = 12; // F172940A -18 178 172940 Fiji Islands
-
- g_SoundTable[g_Continent_AU][12][g_indexLat] = 2;
- g_SoundTable[g_Continent_AU][12][g_indexLong] = 108;
- g_SoundTable[g_Continent_AU][12][g_indexSound] = 13; // F172941A 2 108 172941 Malaysia (+)
-
- g_SoundTable[g_Continent_AU][13][g_indexLat] = -19;
- g_SoundTable[g_Continent_AU][13][g_indexLong] = -159;
- g_SoundTable[g_Continent_AU][13][g_indexSound] = 14; // F172960A -19 -159 172960 Cook Islands-
-
- g_SoundTable[g_Continent_AU][14][g_indexLat] = 0;
- g_SoundTable[g_Continent_AU][14][g_indexLong] = 175;
- g_SoundTable[g_Continent_AU][14][g_indexSound] = 15; // F172961A 0 175 172961 Kiribati
-
- g_SoundTable[g_Continent_AU][15][g_indexLat] = -12;
- g_SoundTable[g_Continent_AU][15][g_indexLong] = 170;
- g_SoundTable[g_Continent_AU][15][g_indexSound] = 16; // F172962A -12 170 172962 American Samoa
-
- g_SoundTable[g_Continent_AU][16][g_indexLat] = 15;
- g_SoundTable[g_Continent_AU][16][g_indexLong] = 108;
- g_SoundTable[g_Continent_AU][16][g_indexSound] = 17; // F172974A 15 108 172974 Vietnam (+)
-
- g_SoundTable[g_Continent_AU][17][g_indexLat] = -12;
- g_SoundTable[g_Continent_AU][17][g_indexLong] = 172;
- g_SoundTable[g_Continent_AU][17][g_indexSound] = 18; // F172977A -12 172 172977 Samoa
-
- g_SoundTable[g_Continent_AU][18][g_indexLat] = -16;
- g_SoundTable[g_Continent_AU][18][g_indexLong] = 170;
- g_SoundTable[g_Continent_AU][18][g_indexSound] = 19; // F172978A -16 170 172978 Niue
-
- g_SoundTable[g_Continent_AU][19][g_indexLat] = -22;
- g_SoundTable[g_Continent_AU][19][g_indexLong] = 166;
- g_SoundTable[g_Continent_AU][19][g_indexSound] = 20; // F173212A -22 166 173212 New Caledonia
-
- g_SoundTable[g_Continent_AU][20][g_indexLat] = -2;
- g_SoundTable[g_Continent_AU][20][g_indexLong] = 120;
- g_SoundTable[g_Continent_AU][20][g_indexSound] = 21; // F175264A -2 120 175264 Indonesia (+)
-
- g_SoundTable[g_Continent_AU][21][g_indexLat] = -1;
- g_SoundTable[g_Continent_AU][21][g_indexLong] = 102;
- g_SoundTable[g_Continent_AU][21][g_indexSound] = 22; // F550749A -1 102 550749 Sumatra-
-
- g_SoundTable[g_Continent_AU][22][g_indexLat] = 15;
- g_SoundTable[g_Continent_AU][22][g_indexLong] = 108;
- g_SoundTable[g_Continent_AU][22][g_indexSound] = 23; // F556628A 15 108 556628 Vietnam (+)
-
- g_SoundTable[g_Continent_AU][23][g_indexLat] = -17;
- g_SoundTable[g_Continent_AU][23][g_indexLong] = -174;
- g_SoundTable[g_Continent_AU][23][g_indexSound] = 24; // F999949A -17 -174 999949 Tonga
-
- g_SoundTable[g_Continent_AU][24][g_indexLat] = 12;
- g_SoundTable[g_Continent_AU][24][g_indexLong] = 106;
- g_SoundTable[g_Continent_AU][24][g_indexSound] = 25; // F999950A 12 106 999950 Cambodia (+)
-